package com.shuai.jit.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.shuai.jit.entity.course.Comment;
import com.shuai.jit.entity.vo.VoComment;

import java.util.List;

public interface CommentService extends IService<Comment> {

    Integer addComment(Comment courseComment);


    List<VoComment> selectComment(String id);


    Integer deleteByCommentId(String commentId);

    /**
     * 删除文章或者课程，删除掉所有评论
     * @param id
     * @return
     */
    Integer delete(String id);

}
